import { useEffect } from 'react'
import {useSearchParams} from 'react-router-dom'
import axios from 'axios'
export default ()=>{
    const [params]=useSearchParams()
    useEffect(()=>{
        getGoodsById()
    })

    const getGoodsById=async()=>{
        const result=await axios.get("http://xawn.x3322.net:8012/gen/goods",{
            params:{
                pageSize:10,
                pageNum:1
            },
            headers:{
                'Content-Type':"application/x-www-form-urlencoded",
                "Authentication":localStorage.getItem("token")
            }
        })
        const item=result.data.rows.filter(item=>item.id==params.get("productId"))[0]
        
    }
    return (<>
      <div>商品修改</div>
    

    </>)
}